package com.thd.springboottest.shiro.token;

import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.HostAuthenticationToken;
import org.apache.shiro.authc.RememberMeAuthenticationToken;

public class JwtToken implements AuthenticationToken {

    /**
     * The jwt
     */
    private String jwt;


    public JwtToken(String jwt) {
      this.jwt = jwt;
    }


    public String getJwt() {
        return jwt;
    }

    public void setJwt(String jwt) {
        this.jwt = jwt;
    }

    @Override
    public Object getPrincipal() {
        return this.jwt;
    }

    @Override
    public Object getCredentials() {
        return this.jwt;
    }



}
